package com.yuwen.yuwenRPC.fault;

import com.yuwen.yuwenRPC.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @ClassNameretry
 * @Description TODO
 * @Author钰玟
 * @Date2025/4/6 上午10:30
 * @Version 1.0
 **/

/**
 * 重试机制接口
 */
public interface RetryStrategy {


    /**
     * 重试机制
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
